﻿using Max.PH4_2102A.Shopping.DAL;
using Max.PH4_2102A.Shopping.Domain;
using Max.PH4_2102A.Shopping.IRespository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4_2102A.Shopping.Respository
{
    public class LogisticMasterRespository : ILogisticMasterRespository
    {
        EFCoreHelper _ef;

        public LogisticMasterRespository(EFCoreHelper ef)
        {
            _ef = ef;
        }

        public IQueryable<LogisticMasterEntity> GetAll()
        {
            return _ef.LogisticMasters;
        }
    }

    public class LogisticDetailRespository : ILogisticDetailRespository
    {
        EFCoreHelper _ef;

        public LogisticDetailRespository(EFCoreHelper ef)
        {
            _ef = ef;
        }

        public IQueryable<LogisticDetailEntity> GetAll()
        {
            return _ef.LogisticDetails;
        }
    }
}
